package com.yl.dao;

import com.yl.model.TShopCouponGet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lfs
 * @since 2021-01-27
 */
public interface TShopCouponGetMapper extends BaseMapper<TShopCouponGet> {
    /**
     * 获取平台优惠券 couponId=1
     * @param openId 用户OPEN_ID
     * @return
     */
    public TShopCouponGet findShopCouponGetByOpenId(String openId);

    /**
     * 获取平台优惠券 couponId=？
     * @param openId 用户OPEN_ID
     * @return
     */
    public TShopCouponGet findShopCouponGetByOpenIdAndCouponId(@Param("openId") String openId, @Param("couponId") String couponId);
}
